package com.yy.sso.user.rest;

import com.yy.sso.common.vo.Result;
import com.yy.sso.user.rest.impl.OrderRestImpl;
import com.yy.sso.user.vo.OrderVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

import java.util.List;

@FeignClient(value = "sso-order",fallback = OrderRestImpl.class)
public interface IOrderRest {

    @GetMapping(value = "/order/user/{userId}")
    public Result<List<OrderVo>> getOrderListByUserId(@PathVariable("userId")Long userId);
}
